
<%@ page import="java.io.* ,java.util.*, java.sql.*,com.jipl.beans.*, com.jipl.dao.*"%>
<html >
    <!-- DW6 -->
    <head>
        <title>View supplier details</title>
        <script language="JavaScript" type="text/javascript">
            function displayHTML(printContent)
            {
                var int=printContent;
                win=window.open("print.htm",'popup','toolbar=no, scrollbars=yes ,status=yes, width=1024');
                win.document.write(int);
                window.print();
            }

        </script>
        <style type="text/css">
            <!--
            .style1 {
                color: #00CC00
            }
            -->
        </style>
        <link href="images/mm_health_nutr.css" rel="stylesheet" type="text/css">
        <style type="text/css">
            <!--
            .style5 {
                color: #006600
            }
            .style7 {
                color: #FFFFFF;
            }
            -->
        </style>
        <script src="../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
        <link href="../../images/mm_health_nutr.css" rel="stylesheet" type="text/css">
        <style type="text/css">
            <!--
            .style8 {
                color: #4E7629;
                font-family: "Times New Roman", Times, serif;
            }
            a {
                font-family: Times New Roman, Times, serif;
                font-size: 12px;
                font-weight: bold;
            }
            a:link {
                text-decoration: none;
            }
            a:visited {
                text-decoration: none;
            }
            a:hover {
                text-decoration: none;
            }
            a:active {
                text-decoration: none;
            }
            -->
        </style>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#5C743D">
        <table width="101%" border="0" cellspacing="0" cellpadding="0">

            <tr>
                <td height="536"><form id="viewsupp" name="viewsupp" action="viewSupp.jsp">
                        <p align="center">&nbsp;</p>
                        <p>&nbsp;</p>
                        <table width="100%" border="0" align="center">
                            <tr >
                                <th height="28" background="../../images/flash_header1.png" >Supplier Name</th>
                                <th background="../../images/flash_header1.png" >Address</th>
                                <th background="../../images/flash_header1.png" >Phone</th>
                                <th background="../../images/flash_header1.png" >Location</th>
                            </tr>
                            <%
                                                  SupplierDao sdao=new SupplierDao();
                                                  Vector gp1 = sdao.getRows();
                          if (gp1 != null) {
                              Iterator itg = gp1.iterator();
                              while (itg.hasNext()) {
                                  SupplierBean gb = (SupplierBean) itg.next();
                
                            %>


                            <tr class="bodyText">
                                <td nowrap  class="style7"><%=gb.getSupplerName()%></th>
                                <td nowrap class="style7"><%=gb.getAddress()%></th>
                                <td nowrap class="style7"><%=gb.getPhone()%></th>
                                <td nowrap class="style7"><%=gb.getSupplerLoation()%></th>
                            </tr>
                            <%}

                           }%>
                        </table>
                        <div align="center">
                            <p>&nbsp;</p>
                            <p><a href='javascript:displayHTML(viewsupp.innerHTML)'><strong>Print Privew</strong></a> </p>
                        </div>
                    </form>  </tr>
        </table>
    </body>
</html>
